local T, F = T or 0, F or CreateFrame("frame")
if X then
    X = nil
else
    X = function()
        local t = GetTime()
        if t - T > 1 then
            RepopMe()
            AcceptResurrect()
            AcceptXPLoss():Click()
            T = t
        end
    end
end
F:SetScript("OnUpdate", X)

T, F = T or 0, F or CreateFrame("frame")
if X then
    X = nil
else
    X = function()
        local t = GetTime()
        if t - T > 1 then
            StaticPopup1Button1:Click()
            T = t
        end
    end
end

F:SetScript("OnUpdate", X)

T, F = T or 0, F or CreateFrame("frame")
if X then
    X = nil
else
    X = function()
        local t = GetTime()
        if t - T > 90 then
            SendChatMessage("交易频道的喊话词", "channel", nil, 2)
            T = t
        end
    end
end
F:SetScript("OnUpdate", X)